﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace MLY.UserControls
{
    //[assembly: TagPrefix("MLY.Controls", "KBMCalendar")]
    public class KbmCalendar : AjaxControlToolkit.CalendarExtender
    {
        protected override void OnLoad(EventArgs e)
        {
            this.DataBind();
            Format = @"dd/MM/yyyy";
            base.OnLoad(e);
        }

        bool _defaultToTodat;

        public bool defaultToToday
        {
            get
            {
                return _defaultToTodat;
            }
            set
            {
                if (value == true)
                    SelectedDate = DateTime.Now;
                _defaultToTodat = value;
            }
        }
    }
}
